package mvc.model.service.impl;

import mvc.model.dao.OrderDao;
import mvc.model.dao.impl.OrderDaoImpl;
import mvc.model.pojos.OrderBean;
import mvc.model.pojos.P_infoBean;
import mvc.model.pojos.ProductBean;
import mvc.model.service.OrderService;
import mvc.model.vo.Order;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    private static OrderDao orderDao = new OrderDaoImpl();
    @Override
    public List<OrderBean> query(int uid) {
        return orderDao.query(uid);
    }

    @Override
    public OrderBean queryOne(int oid) {
        return orderDao.queryOne(oid);
    }

    @Override
    public ProductBean queryPro(int pid) {
        return null;
    }

    @Override
    public P_infoBean queryP_info(int number) {
        return null;
    }

    @Override
    public List<Order> queryVO(int uid) {
        return orderDao.queryVO(uid);
    }

    @Override
    public Order queryOneVO(int oid) {
        return orderDao.queryOneVO(oid);
    }

    @Override
    public List<OrderBean> queryStatus(int uid, String status) {
        return orderDao.queryStatus(uid, status);
    }

}
